//
//  ViewController.m
//  FF0629
//
//  Created by jisa on 2022/6/29.
//

#import "ViewController.h"
#import "VerificationViewController.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSBundle *bundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"FF0629Bundle" ofType:@"bundle"]];
    
    UIImage *image = [UIImage imageWithContentsOfFile:[bundle pathForResource:@"222" ofType:@"jpeg"]];
    
    if (image) {
        NSLog(@"已经获取到图片");
    }
        
    
    VerificationViewController *vc = [[VerificationViewController alloc] initWithNibName:@"VerificationViewController" bundle:bundle];
    [self addChildViewController:vc];
    [self.view addSubview:vc.view];
    vc.view.frame = self.view.bounds;
    
    [image resizableImageWithCapInsets:UIEdgeInsetsZero resizingMode:UIImageResizingModeTile];
    
    vc.view.backgroundColor = [UIColor colorWithPatternImage:image];

    
    // Do any additional setup after loading the view.
}


@end
